export default [
  {
    path: '/',
    name: '/',
    component: () => import('@/layout/index'),
    redirect: '/home',
    meta:{
      path:'首页'
    },
    children: [
      {
        path: 'user',
        name: 'User',
        component: () => import('@/views/User/index'),
        meta: {
          path:'用户管理'
        }
      },
      {
        path: 'home',
        name: 'Home',
        component: () => import('@/views/Home/home'),
        meta: {
          path:'首页'
        }
      },
      {
        path: 'Mall',
        name: 'Mall',
        component: () => import('@/views/Mall/index'),
        meta: {
          path:'商品管理'
        }
      },
      {
        path: 'page1',
        name: 'Page1',
        component: () => import('@/views/Other1/index'),
        meta: {
          path:'其他/页面1'
        }
      },
      {
        path: 'page2',
        name: 'Page2',
        component: () => import('@/views/Other2/index'),
        meta: {
          path:'其他/页面2'
        }
      },
    ]
  },
  {
    path:'/login',
    name:'Login',
    component:()=>import('@/views/Login/index')
  },
  //重定向
  {
    path: '/',
    redirect: '/home',
  }
]
